<?php
require 'conn.php';
if($_GET['action']=='del')
{
    $xh=$_GET['xh'];
    $result=mysqli_query($link,"delete from xs where xh=".$xh);
    if($result)
    {
        echo "<script>alert('删除成功！');location='index2.php';</script>";
    }
    else
    {
        echo "<script>alert('删除失败！');</script>";
    }
}

?>